<?php namespace Zmsun\Service\ServiceManager;class ServiceManagerConfig{protected$invokables=array('Escaper'=>'Zmsun\Escaper\Escaper',);protected$instances=array();public function __construct(array$configuration=array()){if(isset($configuration['invokables'])){$this->invokables=array_merge($this->invokables,$configuration['invokables']);}if(isset($configuration['instances'])){$this->instances=array_merge($this->instances,$configuration['instances']);}}public function configureServiceManager(ServiceManager$serviceManager){foreach($this->invokables as$name=>$class){$serviceManager->setInvokableClass($name,$class);}foreach($this->instances as$name=>$service){$serviceManager->setService($name,$service);}$serviceManager->setService('ServiceManager',$serviceManager);}}?>